package com.virtium.vpm.dao;

import java.util.List;

import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Example;

import com.virtium.vpm.hibernate.model.Project;

public interface ProjectDAO extends GenericDAO{
	public void save(Project transientInstance);

	public void delete(Project persistentInstance);

	public Project findById(java.lang.Integer id);

	public List findByExample(Project instance);

	public List findByProperty(String propertyName, Object value);

	public List findByTypeId(Object typeId);
	public List findByEmail(Object email);
	public List findByArchive(Object archive);

	public List findAll();
	public Project merge(Project detachedInstance);

	public void attachDirty(Project instance);

	public void attachClean(Project instance);
}
